﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using XOS_VHD_Tools.VHD;

namespace XOS_VHD_FAT32
{

    class File : FSItem, IFile
    {
        public File(DirEntry entry, FAT32Driver drv)
            : base(entry, drv)
        {
        }

        public long Size
        {
            get { return _entry.Size; }
        }

        public Stream OpenFile()
        {
            return new FileStream(_entry, _drv);
        }

       

        public override string ToString()
        {
            return Name;
        }


        public void Delete()
        {
            throw new NotImplementedException();
        }

        public void Rename(string newName)
        {
            throw new NotImplementedException();
        }


        
    }

}
